package com.mall.ibatis.bean;

import java.io.Serializable;
import java.util.List;

@SuppressWarnings("serial")
public class Function implements Serializable
{
	private String functionID;
	private String functionName;
	private String functionAction;
	private String functionLabel;
	private String functionView;
	private String isLeaf;
	private Integer functionLevel;
	private String rootID;
	private String functionParentID;
	private String functionOrder;
	private String inputValue;
	private String inputKey;
	private String functionSeq;
	private String useType;
	
	//通过定义长度属性来保证树形菜单的缩进层次
	private String functionIDlength;

	//定义方法集合属性
	private List<Method> methods;
	
	public List<Method> getMethods() {
		return methods;
	}
	public void setMethods(List<Method> methods) {
		this.methods = methods;
	}
	public String getFunctionIDlength() {
		return functionID.length()/2 + "";
	}
	public void setFunctionIDlength(String functionIDlength) {
		this.functionIDlength = functionIDlength;
	}
	
	public String getFunctionID()
	{
		return functionID;
	}
	public void setFunctionID(String functionID)
	{
		this.functionID = functionID;
	}
	public String getFunctionName()
	{
		return functionName;
	}
	public void setFunctionName(String functionName)
	{
		this.functionName = functionName;
	}
	public String getFunctionAction()
	{
		return functionAction;
	}
	public void setFunctionAction(String functionAction)
	{
		this.functionAction = functionAction;
	}
	public String getFunctionLabel()
	{
		return functionLabel;
	}
	public void setFunctionLabel(String functionLabel)
	{
		this.functionLabel = functionLabel;
	}
	public String getFunctionView()
	{
		return functionView;
	}
	public void setFunctionView(String functionView)
	{
		this.functionView = functionView;
	}
	public String getIsLeaf()
	{
		return isLeaf;
	}
	public void setIsLeaf(String isLeaf)
	{
		this.isLeaf = isLeaf;
	}
	public Integer getFunctionLevel()
	{
		return functionLevel;
	}
	public void setFunctionLevel(Integer functionLevel)
	{
		this.functionLevel = functionLevel;
	}
	public String getRootID()
	{
		return rootID;
	}
	public void setRootID(String rootID)
	{
		this.rootID = rootID;
	}
	public String getFunctionParentID()
	{
		return functionParentID;
	}
	public void setFunctionParentID(String functionParentID)
	{
		this.functionParentID = functionParentID;
	}
	public String getFunctionOrder()
	{
		return functionOrder;
	}
	public void setFunctionOrder(String functionOrder)
	{
		this.functionOrder = functionOrder;
	}
	public String getInputValue()
	{
		return inputValue;
	}
	public void setInputValue(String inputValue)
	{
		this.inputValue = inputValue;
	}
	public String getInputKey()
	{
		return inputKey;
	}
	public void setInputKey(String inputKey)
	{
		this.inputKey = inputKey;
	}
	public String getFunctionSeq()
	{
		return functionSeq;
	}
	public void setFunctionSeq(String functionSeq)
	{
		this.functionSeq = functionSeq;
	}
	public String getUseType()
	{
		return useType;
	}
	public void setUseType(String useType)
	{
		this.useType = useType;
	}
}
